<template>
    <a-result
            :status="shopStatus===2||shopStatus===1?'success':'warning'"
            :title="shopStatus===1?'审核已通过，请重新登录':shopStatus===2?'您已成功申请，目前正在审批中，请耐心等待!':shopStatus===5?'审核已被驳回，请查询邮件查看审核结果':shopStatus===0?'店铺已冻结':''"
    >
    </a-result>
</template>

<script>
    import companyApi from "../../../api/user/companyApi";

    export default {
        name: "shopApplyResult",
        data() {
            return {
                shopStatus: null
            }
        },
        created() {
            this.getShopStatus();
        },
        methods: {
            getShopStatus() {
                companyApi.queryShopStatus().then(resp => {
                    if (resp.data.flag) {
                        this.shopStatus = resp.data.data
                        if (this.shopStatus===1){
                            this.$router.push("/cell-center")
                        }
                    }
                })
            }
        }
    }
</script>

<style scoped>

</style>